package com.victor.service;

import com.github.pagehelper.PageInfo;
import com.victor.entity.address.Address;

public interface AddressService {
	/**
	 * 添加地址
	 * 
	 * @param address
	 * @return
	 */
	boolean insert(Address address);

	/**
	 * 修改地址
	 * 
	 * @param address
	 * @return
	 */
	boolean update(Address address);

	/**
	 * 查询地址详情
	 * 
	 * @param id
	 * @return
	 */
	Address selById(Integer id);

	/**
	 * 地址列表
	 * 
	 * @param page
	 * @param row
	 * @param uid
	 * @return
	 */
	PageInfo<Address> selAll(int page, int row, String uid);

	/**
	 * 默认地址
	 * 
	 * @param id
	 * @param uid
	 * @return
	 */
	boolean updMoren(Integer id, String uid);

	/**
	 * 删除
	 * 
	 * @param id
	 * @return
	 */
	boolean delete(Integer id);

	/**
	 * 查找默认地址
	 * 
	 * @param uid
	 * @return
	 */
	Address selMoren(String uid);

}
